package cn.tedu.superscholarstore.controller;

import cn.tedu.superscholarstore.mapper.ActivityMapper;
import cn.tedu.superscholarstore.pojo.entity.Activity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ActivityController {
    @Autowired(required = false)
    ActivityMapper mapper;

    @RequestMapping("/activity")
    public List<Activity> activity(){
        return mapper.select();
    }
}
